﻿using System;
using System.ComponentModel.DataAnnotations;
using MMSWebsite.Models.Asset;

namespace MMSWebsite.Models
{
    public class Customer : Person
    {
        [DataType(DataType.Text)]
        [Display(Name = "Company Name")]
        public string CompanyNm { get; set; }

        [DataType(DataType.Text)]
        [Display(Name = "Tax")]
        [StringLength(50, ErrorMessage = "Must less than 51 characters")]
        public string Tax { get; set; }

        [Display(Name = "Resp")]
        public EmployeeViewModel ResponsibleEmp { get; set; }

        [DataType(DataType.Date)]
        public DateTime? StartDay { get; set; }

        [DataType(DataType.Date)]
        public DateTime? EndDay { get; set; }

        [DataType(DataType.Date)]
        public DateTime? FinishedDay { get; set; }

        [Display(Name = "Status")]
        public MasterData Status { get; set; }
    }
}